﻿<phone:PhoneApplicationPage 
    x:Class="FinanceCalculators.Views.MortgageTaxSavings.MortagageTaxSaving"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="HomeBuyerTools" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Mortgage Tax Savings" Margin="9,-7,0,0" FontSize="45"/>
        </StackPanel>
        <ScrollViewer Grid.Row="1">
            <!--ContentPanel - place additional content here-->
            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Orientation="Horizontal">
                    <TextBlock Margin="0,0,0,0" Name="textBlock1" Text="Income" Width="210" FontSize="30" />
                </StackPanel>
                <StackPanel Grid.Row="1" Orientation="Horizontal">
                    <TextBlock  Margin="0,30,0,40" Name="tbYearlyIncome" Text="Yearly Income:" Width="242" FontSize="25" />
                    <TextBox  Name="txtYearlyIncome" Text="80000" InputScope="TelephoneNumber" Width="250" Height="77" />
                </StackPanel>
                <StackPanel Grid.Row="2" Orientation="Horizontal">
                    <TextBlock Margin="0,10,0,40" Name="tbTaxFilingStatus" Text="Tax Filing Status:" Width="233" FontSize="25" />
                    <toolkit:ListPicker x:Name="list" Margin="20,0,0,0" Width="218" ItemCountThreshold="3">
                        <ListBoxItem Content="single"></ListBoxItem>
                        <ListBoxItem Content="Married filing Jointly"></ListBoxItem>
                        <ListBoxItem Content="Head of the Household"></ListBoxItem>
                    </toolkit:ListPicker>
                </StackPanel>
                <StackPanel Grid.Row="3" Orientation="Horizontal">
                    <TextBlock Margin="0,20,0,40" Name="tbOfDependants" Text="# of Dependants: " Width="240" FontSize="25" />
                    <TextBox Name="txtOfDependants" Text="0" InputScope="TelephoneNumber"  Width="259" Height="77"  />
                </StackPanel>
                <StackPanel Grid.Row="4" Orientation="Horizontal">
                    <TextBlock  Margin="0,0,0,0" Name="textBlock5" Text="Yearly Tax Deductions" Width="318" FontSize="30" />
                </StackPanel>
                <StackPanel Grid.Row="5" Orientation="Horizontal">
                    <TextBlock   Margin="0,20,0,40" Name="tbStateIncomeTax" Text="State Income Tax:"  Width="240" FontSize="25" />
                    <TextBox Name="txtStateIncomeTax"  InputScope="TelephoneNumber" Text="2500" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="6" Orientation="Horizontal">
                    <TextBlock   Margin="0,20,0,40" Name="tbIRA401" Text="IRA/401(k):"  Width="236" FontSize="25" />
                    <TextBox Name="txtIRA401" InputScope="TelephoneNumber" Text="1000" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="7" Orientation="Horizontal">
                    <TextBlock  Margin="0,0,0,0" Name="tbHomePurchaseInformation" Text="Home Purchase Information"  Width="422" FontSize="30"  />
                </StackPanel>
                <StackPanel Grid.Row="8" Orientation="Horizontal">
                    <TextBlock Margin="0,20,0,40" Name="tbPurchasePrice" Text="Purchase Price:" Width="232" FontSize="25"   />
                    <TextBox  Name="txtPurchasePrice" InputScope="TelephoneNumber" Text="250000" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="9" Orientation="Horizontal">
                    <TextBlock Margin="0,20,0,40" Name="tbDownPayment" Text="Down Payment:" Width="232" FontSize="25" />
                    <TextBox  Name="txtDownPayment" InputScope="TelephoneNumber" Text="10000" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="10" Orientation="Horizontal">
                    <TextBlock Margin="0,20,0,40" Name="tbInterestRate" Text="Interest Rate:" Width="232" FontSize="25" />
                    <TextBox  Name="txtInterestRate" InputScope="TelephoneNumber" Text="5.75" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="11" Orientation="Horizontal">
                    <TextBlock Margin="0,20,0,40" Name="tbTermsinYears" Text="Terms in Years:" Width="232" FontSize="25"  />
                    <TextBox  Name="txtTermsinYears" InputScope="TelephoneNumber" Text="25" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="12" Orientation="Horizontal">
                    <TextBlock Margin="0,20,0,40" Name="tbPropertyTaxes" Text="Property Taxes:" Width="232" FontSize="25" />
                    <TextBox  Name="txtPropertyTaxes" InputScope="TelephoneNumber" Text="3000" Width="250" Height="77"/>
                </StackPanel>
                <StackPanel Grid.Row="13" Orientation="Horizontal">
                    <!--<Button Content="Calculate" Margin="90,0,0,0"  Name="button1" Click="Calculate_Click"></Button>-->
                </StackPanel>

            </Grid>
        </ScrollViewer>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" Text="Calculate" Click="ApplicationBarIconButton_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
